﻿#ifndef FRMDRAWER_H
#define FRMDRAWER_H

#include <QWidget>

class QPaintEvent;
class frmDrawer : public QWidget
{
    Q_OBJECT

public:
    explicit frmDrawer(QWidget *parent = 0);
    ~frmDrawer();

public:
    enum DrawType {
        DrawNone,
        DrawLine,
        DrawArc,
        DrawRect,
        DrawCircle,
        DrawLayer,
    };

protected:
    virtual void paintEvent(QPaintEvent *event);

public slots:
    void draw(DrawType type);

private:
    void draw_line(void);

    void draw_arc(void);

    void draw_layer(void);

private:
    DrawType        m_draw_type;
};

#endif // FRMDRAWER_H
